#!/usr/local/bin/bash

GRID=sge

if [ $GRID == "sge" ]
then
    qconf -sel | grep -E "rlx|dell" | sort | uniq
elif [ $GRID == "condor" ]
then
    condor_status -format "%-20s" Name -format "%10.10s\n" OpSys | grep LINUX | awk '{print $1}' | \
    grep -E 'dell|rlx' | sed -e 's/vm[1|2|3|4|5|6|7|8]@//' | sort | uniq
fi
